package com.jzo2o.foundations.controller.operation;

import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.dto.request.RegionPageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.response.RegionResDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;
import com.jzo2o.foundations.service.IServeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;

public class ServeController {
    @Autowired
    private IServeService serveService;
    @GetMapping("/page")
    @ApiOperation("区域分页查询")
    public PageResult<ServeResDTO> page(ServePageQueryReqDTO servePageQueryReq) {
        return  serveService.findByPage(servePageQueryReq);

    }
}
